#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct ec
{
	int num;
	int count;
	char something[20];
}stu[3] = {{12, 13, "esp"}, {15,16, "sk"}, {17, 18, "we"}};

int main()
{
	struct ec *p;
	
	p = stu;
	//p = (struct ec *) &stu[0].num;
	printf("%d\n", p);		// 地址
	printf("%d\n", p + 1);	
	printf("%p\n", p);		// 地址(十六进制)
	printf("%p\n", p + 1);	
	
	p = (struct ec *) &stu[0];	// ==	 p = stu;
	printf("%d\t%d\t%s\n", p->num, p->count, p->something);
	printf("%d\t%d\t%s\n", (p+1)->num, (p+1)->count, (p+1)->something);
	
	return 0;
}

